.cx-custom-chart {
    position: relative;
    padding: 3px 6px;
    margin: 12px auto;
    width: 60%;
    min-width: 300px;
    .editBtn, .toggleBtn {
        position: absolute;
        top: -6px;
        right: -100px;
        display: inline-block;
        padding: 5px 10px;
        background: rgba(0,0,0,.6);
        border-radius: 6px;
        color: #fff;
        font-size: 12px;
        cursor: pointer;
        &:hover {
            background: rgba(0,0,0,.8); 
        }
    }

    .toggleBtn {
        right: -50px;
    }   
}

:global(.cx-common-modal) {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    padding-top: 122px;
    overflow: hidden;
    background-color: rgba(0,0,0,.7);
    :global(.cx-commom-modal-content) {
        margin-top: 100px;
        min-height: 200px;
        width: 60%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 6px;
        background-color: #fff;
    }
    .baseBtn(@bg: #000, @color: #fff) {
        position: absolute;
        margin-top: -46px;
        right: calc(20% + 20px);
        display: inline-block;
        border-radius: 6px;
        padding: 5px 12px;
        background-color: @bg;
        color: @color;
        cursor: pointer;
    }
    :global(.cx-commom-modal-cancel) {
        .baseBtn(#b6b7b8, #333232);
    }

    :global(.cx-commom-modal-save) {
        .baseBtn();
        right: calc(20% + 100px);
    }
}